package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {
    void saveWithflavor(DishDTO dish);


    PageResult page(DishPageQueryDTO query);

    void delete(String ids);

    DishVO getById(String id);

    void update(DishDTO dish);

    void updateStatus(Integer id, String status);

    List<Dish> listByCategory(Integer categoryId);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
